<?xml version="1.0"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
         version="2.4">

  <display-name>JODConverter</display-name>
  <description>JODConverter Sample Web Application</description>

  <context-param>
    <param-name>fileupload.fileSizeMax</param-name>
    <param-value>542880</param-value><!-- 5MB -->
  </context-param>

 <context-param>
    <param-name>zip</param-name>
    <param-value>true</param-value> 
  </context-param>

   <context-param>
    <param-name>txconverterpath</param-name>
    <param-value>C:\myprojs\ilookinto\prototypes\TXConverter16\TXConverter16\bin\Debug\TXConverter16.exe</param-value><!-- 5MB -->
  </context-param>
  <!-- uncomment and edit if needed -->
  <!--
  <context-param>
    <param-name>office.port</param-name>
    <param-value>8100</param-value>
  </context-param>
  <context-param>
    <param-name>office.home</param-name>
    <param-value>/opt/openoffice.org3</param-value>
  </context-param>
  <context-param>
    <param-name>office.profile</param-name>
    <param-value>/home/converter/.openoffice.org/3</param-value>
  </context-param>
  -->

  <listener>
    <listener-class>org.artofsolving.jodconverter.sample.web.WebappContextListener</listener-class>
  </listener>

  <servlet>
    <servlet-name>ConverterServlet</servlet-name>
    <servlet-class>org.artofsolving.jodconverter.sample.web.ConverterServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>TXConverterServlet</servlet-name>
    <servlet-class>org.artofsolving.jodconverter.sample.web.TXConverterServlet</servlet-class>
  </servlet>
<servlet>
    <servlet-name>jscon-js</servlet-name>
    <jsp-file>/jscon.jsp</jsp-file>
  </servlet>

  <servlet-mapping>
    <servlet-name>ConverterServlet</servlet-name>
    <url-pattern>/converted/*</url-pattern>
  </servlet-mapping>

   <servlet-mapping>
    <servlet-name>TXConverterServlet</servlet-name>
    <url-pattern>/txconv/*</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>jscon-js</servlet-name>
    <url-pattern>/jscon.js</url-pattern>
  </servlet-mapping>

   <description>MySQL Test App</description>
  <resource-ref>
      <description>DB Connection</description>
      <res-ref-name>jdbc/log</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
  </resource-ref>

</web-app>